package enums;

import java.util.EnumMap;

/**
 * Created by jianweilin on 16/8/21.
 */
public class EnumMapDemo {
    public static void main(String[] args) {
        EnumMap<RoleEnum,String> em = new EnumMap<RoleEnum, String>(RoleEnum.class);
        em.put(RoleEnum.SYSADMIN,"系统管理员");
        em.put(RoleEnum.ROLEA,"角色A");
        System.out.println(" size = "+em.size());
        System.out.println(em.get(RoleEnum.SYSADMIN));
    }
}
